It is discouraged to use the forth possibility since it uses up a valuable ATCommand instance. Use Java API for non-transparent, use CommConnection for transparent GPS access. Transparent and non-transparent modes can not be used concurrently but it is possible and in some cases may be necessary to use AT commands concurrently with the Java API e.g. for GPS power saving modes. For details about AT command related GPS functionality see
[1].
The usage of CommConnection for GPS access is very straight forward. Calling Connector.open with port-id “gps0” opens a transparent channel to the GPS module. Then all protocols supported by the GPS hardware can be used.
There can be 8 stores plus 1 default store each containing up to 100 landmarks in up to 8 categories (“no category” also counts as a category). Using AddressInfo with the landmarks might decrease the maximum number of possible landmarks in a store, depending on the amount of AddressInfo data being used. An IOException indicates that a store is full.
There is only one store active at a time. The current store information is kept in RAM and only written to FFS when the application switches to a different store or terminates. Saving a store might take up to 45s! During this time period the VM is blocked, no processing can be done in parallel.